package com.cloud.hello.controller;

import org.springframework.web.bind.annotation.RestController;

import com.hello.api.model.User;
import com.hello.api.service.HelloService;

@RestController
public class RefactorHelloController implements HelloService {

	@Override
	public String hello(String name) {
		return name;
	}

	@Override
	public User hello(String name, Integer age) {
		return new User(name, age);
	}

	@Override
	public String hello(User user) {
		return "hello  " + user.getName() + "," + user.getAge();
	}

}
